<?php
    namespace Services\ORM\Project;
    class User extends ProjectAbstract
    {
        public static function getEntityClass()
        {
            return 'Project\User';
        }
        
        public static function findNameByRole($role)
        {
            $em = self::getEntityManager();
            return $em->getRepository(self::getEntityClass())->findNameByRole($role);
        }
    }